package model;

public class User {
    private Integer id;            // 主键
    private String username;      // 账号
    private String nickname;      // 用户昵称
    private String password;      // 密码
    private String email;         // 电子邮件
    private String phone;         // 电话号码
    private String gender;        // 性别（M/F）
    private Integer role;         // 0:患者 1:管理员

    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }

    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    public String getNickname() { return nickname; }
    public void setNickname(String nickname) { this.nickname = nickname; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public String getEmail() { return email; }
    public void setEmail(String email) { this.email = email; }

    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }

    public String getGender() { return gender; }
    public void setGender(String gender) { this.gender = gender; }

    public Integer getRole() { return role; }
    public void setRole(Integer role) { this.role = role; }
} 